﻿namespace CollisionDetection.Views
{
    using System.Windows;
    using System.Windows.Controls;
    using CollisionDetection.ViewModels;

    /// <summary>
    /// Interaction logic for MainScreen.xaml
    /// </summary>
    public partial class ImportadorView : UserControl
    {
        public ImportadorView()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            ((ImportadorViewModel) DataContext).Importar();
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            ((ImportadorViewModel) DataContext).CsvPathDialog();
        }

        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            ((ImportadorViewModel)DataContext).XmlPathDialog();
        }
    }
}